import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
import Signin from '@/components/SignIn/SignIn'
const Home = () => import (/*webpackChunkName:"Home"*/ '@/components/Home/Home')
const PermissionMenage = () => import (/*webpackChunkName:"PermissionMenage"*/ '@/components/Home/System/PermissionMenage')
const roleMenage = () => import (/*webpackChunkName:"roleMenage"*/ '@/components/Home/System/roleMenage')
const userMenage = () => import (/*webpackChunkName:"AddNewPermission"*/ '@/components/Home/System/userMenage')
const CaiPiao = () => import(/*webpackChunkName:"CaiPiao"*/ '@/components/Home/CaiPiao/CaiPiao')
const ssqMenage = () => import(/*webpackChunkName:"ssqMenage"*/ '@/components/Home/CaiPiao/SSQ/ssqMenage')
export default new Router({
  routes: [
    {
      path:'/',
      redirect:{name:'Home'}
    },
   {
     path:'/Signin',
     name:'Signin',
     component:Signin
   },
   {
     path:'/Home',
     name:"Home",
     component:Home,
     children:[
      {
        path:'PermissionMenage',
        name:"权限管理",      
        component:PermissionMenage
      },
      {
        path:'userMenage',
        name:'用户管理',
        component:userMenage
      },
      {
        path:'roleMenage',
        name:'角色管理',
        component:roleMenage
      },
      {
        path:'/CaiPiao',
        name:'彩票列表',
        component:CaiPiao,
        children:[
          {
            path:'ssqMenage',
            name:'双色球',
            component:ssqMenage
          }
        ]
      }
     ]
   }
   

  ]
})
